/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pigx.strategy.dto;


import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 策略仓位-合约 批量开仓
 *
 * @since 2022-11-24 10:39:27
 */
@Data
public class StrategyPositionContractOpenBatchDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 任务idList
     */
    @NotEmpty(message = "数据异常，taskIdList为空")
    private List<Long> taskIdList;

    /**
     * 方向（0做多、1做空）
     */
    @NotBlank(message = "数据异常，side为空")
    private String side;

    /**
     * 数量
     */
    @NotNull(message = "数据异常，num为空")
    @Min(value = 1, message = "数据异常，num最小为1")
    @Max(value = 2000000000, message = "数据异常，num最大为2000000000")
    private Integer num;
}
